package com.iyunsir.parts.service.impl;

import com.iyunsir.parts.entity.Parts;
import com.iyunsir.parts.mapper.PartsMapper;
import com.iyunsir.parts.service.PartsService;
import com.iyunsir.parts.vo.PartsQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PartsServicelmpl implements PartsService {
    @Resource
    private PartsMapper partsMapper;

    @Override
    public List<Parts> getPartsList(PartsQuery param) {
        return partsMapper.getPartsList(param);
    }

    @Override
    public Long countPartsList(PartsQuery param) {
        return partsMapper.countPartsList(param);
    }
}
